#ifndef _RAW_SOCKET_H
#define _RAW_SOCKET_H

#include "net.h"

uint16_t get_data_offset();
uint16_t init_raw_socket(p_socket_io sock);
uint16_t raw_pre_send_buffer(p_socket_io sock, char* buf, uint16_t size);
uint16_t raw_back_pre_buffer(char* buf, uint16_t size);
uint16_t raw_send_msg(p_socket_io sock, char* buf, uint16_t* size);
uint16_t raw_recv_msg(p_socket_io sock, char* buf, uint16_t* size);

#endif
